#include <iostream>
#include <signal.h>
#include <string.h>
using namespace std;
void Usage(const string &s)
{
    cout << "Usage:\n"
         << s << " signo " << "PID" << endl;
}
int main(int argc, char *argv[])
{
    if (argc != 3)
    {
        Usage(argv[0]);
        exit(1);
    }
    int signo = atoi(argv[1]);
    pid_t pid = atoi(argv[2]);
    int ret = kill(pid, signo);
    if (ret == -1)
        cerr << strerror(errno) << endl;
    return 0;
}